/*
 * Copyright 2012 JooKar BV (info@jookar.nl)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.jookar.android.simpleclock.views;

import android.content.Context;
import android.view.View;

/**
 * @author Joost A. Bloemsma
 *
 */
public interface IAnimatedViewSwapper {
	/**
	 * Initialize the swapper 
	 * @param visibleView The view that should be visible at startup
	 * @param hiddenView The view that should be hidden at startup
	 */
	public void init(View visibleView, View hiddenView);

	/**
	 * Initialize the swapper 
	 * @param ctx Reference to the application context
	 * @param visibleView The view that should be visible at startup
	 * @param hiddenView The view that should be hidden at startup
	 */
	public void init(Context ctx, View visibleView, View hiddenView);

	
	/**
	 * Swap the views. View {@code toHide} will be hidden and the view {@code toShow} will be
	 * made visible using the animations that belong to this swapper.
	 * @param toHide
	 * @param toShow
	 */
	public void swapViews(View toHide, View toShow);
}
